home *** CD-ROM | disk | FTP | other *** search
/ Aminet 4 / Aminet 4 - November 1994.iso / aminet / dev / c / appsource.lha / APlusPlus / SASC++ / maketst < prev    next >
Encoding:
Text File  |  1994-08-02  |  1.3 KB  |  51 lines

  1. #
  2. # This script creates a makefile for A++ to be executed
  3. # with SMake and the SASĀ®/C++ Development System.
  4. #
  5.  
  6. # open the output file
  7. echo "Creating SAS 'smakefile'.."
  8. rm smakefile
  9. open smakefile w 1
  10.  
  11. echo "#"^j\
  12. "# SAS Makefile for the A++ Test programs"^j\
  13. "# Copyright (C)1994 by Armin Vogt"^j\
  14. "#"^j\
  15. "# This makefile has been created automatically with 'maketst'"^j\
  16. "# "$Id: maketst,v 1.2 1994/08/02 18:57:23 Armin_Vogt Exp Armin_Vogt $^j\
  17. "#"^j^j\
  18. "TESTPRGS       =    apphome:TESTPRGS/"^j\
  19. "APPINCLUDE     =    appinclude:"^j\
  20. "LIBFILE        =    apphome:SASC++/APPLibrary/aplusplus.lib"^j\
  21. ""^j\
  22. ""^j >.1
  23.  
  24.  
  25. alias ALL        "*p%c exec set p $p; foreach s ( $p ) $c"
  26.  
  27. echo ^j".cxx.o:"^j"   sc $*.cxx includedirectory=$(APPINCLUDE) objectname=/SASC++/" >.1
  28.  
  29.  
  30. echo "Making TESTPRG dependencies.."
  31.  
  32. #
  33. # create testprg dep.: all files present in the TESTPRGS sub-directories
  34. # are included.
  35. #
  36.  
  37. cd apphome:testprgs
  38. unset file
  39. unset path
  40. echo ^j"all: \\" >.1
  41. ALL */*.cxx "strhead path .cxx $s;strtail file / $path;echo \" \"$file\\\\" >.1
  42. unset file
  43. unset path
  44. echo ^j >.1
  45. ALL */*.cxx "strhead path .cxx $s;strtail file / $path;echo ^j"$file: $file.o "\"$\""(LIBFILE)"^j^i"sc link "\"$*\"".o"^j^j"$file.o:  "\"$\""(TESTPRGS)$path.cxx"  >.1
  46. dswap
  47.  
  48. # close created output file
  49. close 1
  50. echo "done."
  51.